﻿<%@ Page Language="c#" CodeBehind="ContactedClient.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.CM.Stat.ContactedClientPage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>ContactedClient</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
</head>
<body>
  <form id="ContactedClient" method="post" runat="server">
    <table id="Table1" cellspacing="1" cellpadding="1" width="100%" border="1">
      <tr>
        <td>共接触 <asp:Literal ID="ltl_Client" runat="server" />位客户</td>
      </tr>
      <tr>
        <td>
          <asp:DataGrid ID="dgrd_Client" runat="server" AllowPaging="True" AutoGenerateColumns="False" Width="100%" CellPadding="3" BorderWidth="1px" BorderColor="#93BEE2">
            <AlternatingItemStyle BackColor="#E8F4FF" />
            <ItemStyle Font-Size="X-Small" />
            <HeaderStyle ForeColor="White" BackColor="#337FB2" />
            <Columns>
              <asp:BoundColumn DataField="ID" HeaderText="编号" />
              <asp:TemplateColumn HeaderText="客户名称">
                <ItemTemplate>
                  <asp:HyperLink runat="server" Target="_blank" NavigateUrl='<%# "../Client.aspx?ClientID="+DataBinder.Eval(Container,"DataItem.ID")%>' Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>' />
                </ItemTemplate>
                <EditItemTemplate>
                  <asp:TextBox runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>' />
                </EditItemTemplate>
              </asp:TemplateColumn>
              <asp:BoundColumn DataField="ContactTimes" HeaderText="接触次数" />
              <asp:BoundColumn DataField="BargainPrognosis" HeaderText="成交预估" />
              <asp:BoundColumn DataField="UpdateTime" HeaderText="更新时间" />
              <asp:TemplateColumn HeaderText="接触状态">
                <ItemTemplate>
                  <%# GetCurStatus(DataBinder.Eval(Container.DataItem,"CurStatus").ToString()) %>
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="添加人">
                <ItemTemplate>
                  <%# GetAddMan(((DataRowView)Container.DataItem).Row.GetChildRows("StaffID_Staff")) %>
                </ItemTemplate>
              </asp:TemplateColumn>
            </Columns>
            <PagerStyle HorizontalAlign="Right" Mode="NumericPages" />
          </asp:DataGrid>
        </td>
      </tr>
    </table>
  </form>
</body>
</html>
